﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using DAMNETLibrary;
using DAMNETLibrary.Resources;

namespace DAMNETWebApplication
{
    public partial class Login : CommonPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void authenticateButton_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(this.emailAddressTextBox.Text))
            {
                DisplayError = Errors.UsernameRequired;
                return;
            }

            if (string.IsNullOrEmpty(this.passwordTextBox.Text))
            {
                DisplayError = Errors.PasswordRequired;
                return;
            }
        }
    }
}